package xcmg.device.web.boxup;

import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import xcmg.device.infra.BasicController;
import xcmg.device.service.boxup.BoxupDetailService;
import yb.ecp.fast.infra.annotation.FastMappingInfo;


/**
 * Created by wxf on 2018/6/12.
 */
@RestController
@RequestMapping("/boxupDetail")
public class BoxupDetailController extends BasicController {
    @Autowired
    private BoxupDetailService boxupDetailService;

    @ApiOperation(value = "装箱清单导出！")
    @RequestMapping(value = "/remove",method = RequestMethod.POST)
    @FastMappingInfo(needLogin = true)
    public void export(String boxupId) throws Exception {
        boxupDetailService.export(boxupId);
    }

    @ApiOperation(value = "进出口装箱清单导出")
    @RequestMapping(value = "/export4Jck",method = RequestMethod.POST)
    @FastMappingInfo(needLogin = true)
    public void export4Jck(String boxupId) throws Exception {
        boxupDetailService.export4Jck(boxupId);
    }

}
